<template>
    <div>
        <span>{{msg}}：{{count}}</span>
        <br/>
    </div>
</template>

<script>
    export default {
        name: "ref-child",
        // props: ['msg', 'count'],
        props: {
            msg: String
        },
        data() {
            return {
                count: 0
            }
        },
        methods: {
            plusHandler(val) {
                this.count += val
            }
        }
    }
</script>

<style scoped>

</style>
